<template>
  <a-config-provider :locale="locale" :theme="themeConfig">
    <RouterView />
  </a-config-provider>
</template>

<script setup>
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import { inject, reactive, ref } from 'vue';
dayjs.locale('zh-cn');

const locale = reactive(zhCN);
const themeConfig = ref({});
const AppOnEvent = inject('AppOnEvent');

AppOnEvent('Theme.Change', (val) => {
  themeConfig.value = val
})


</script>